﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000349 RID: 841
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ComposeSelectedRelicCsReq : IMessage<ComposeSelectedRelicCsReq>, IMessage, IEquatable<ComposeSelectedRelicCsReq>, IDeepCloneable<ComposeSelectedRelicCsReq>, IBufferMessage
	{
		// Token: 0x17000AEE RID: 2798
		// (get) Token: 0x060025CE RID: 9678 RVA: 0x0006A617 File Offset: 0x00068817
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ComposeSelectedRelicCsReq> Parser
		{
			get
			{
				return ComposeSelectedRelicCsReq._parser;
			}
		}

		// Token: 0x17000AEF RID: 2799
		// (get) Token: 0x060025CF RID: 9679 RVA: 0x0006A61E File Offset: 0x0006881E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ComposeSelectedRelicCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000AF0 RID: 2800
		// (get) Token: 0x060025D0 RID: 9680 RVA: 0x0006A630 File Offset: 0x00068830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ComposeSelectedRelicCsReq.Descriptor;
			}
		}

		// Token: 0x060025D1 RID: 9681 RVA: 0x0006A637 File Offset: 0x00068837
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeSelectedRelicCsReq()
		{
		}

		// Token: 0x060025D2 RID: 9682 RVA: 0x0006A640 File Offset: 0x00068840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeSelectedRelicCsReq(ComposeSelectedRelicCsReq other) : this()
		{
			this.composeRelicId_ = other.composeRelicId_;
			this.composeItemList_ = ((other.composeItemList_ != null) ? other.composeItemList_.Clone() : null);
			this.mainAffixId_ = other.mainAffixId_;
			this.count_ = other.count_;
			this.composeId_ = other.composeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060025D3 RID: 9683 RVA: 0x0006A6B0 File Offset: 0x000688B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeSelectedRelicCsReq Clone()
		{
			return new ComposeSelectedRelicCsReq(this);
		}

		// Token: 0x17000AF1 RID: 2801
		// (get) Token: 0x060025D4 RID: 9684 RVA: 0x0006A6B8 File Offset: 0x000688B8
		// (set) Token: 0x060025D5 RID: 9685 RVA: 0x0006A6C0 File Offset: 0x000688C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ComposeRelicId
		{
			get
			{
				return this.composeRelicId_;
			}
			set
			{
				this.composeRelicId_ = value;
			}
		}

		// Token: 0x17000AF2 RID: 2802
		// (get) Token: 0x060025D6 RID: 9686 RVA: 0x0006A6C9 File Offset: 0x000688C9
		// (set) Token: 0x060025D7 RID: 9687 RVA: 0x0006A6D1 File Offset: 0x000688D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData ComposeItemList
		{
			get
			{
				return this.composeItemList_;
			}
			set
			{
				this.composeItemList_ = value;
			}
		}

		// Token: 0x17000AF3 RID: 2803
		// (get) Token: 0x060025D8 RID: 9688 RVA: 0x0006A6DA File Offset: 0x000688DA
		// (set) Token: 0x060025D9 RID: 9689 RVA: 0x0006A6E2 File Offset: 0x000688E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainAffixId
		{
			get
			{
				return this.mainAffixId_;
			}
			set
			{
				this.mainAffixId_ = value;
			}
		}

		// Token: 0x17000AF4 RID: 2804
		// (get) Token: 0x060025DA RID: 9690 RVA: 0x0006A6EB File Offset: 0x000688EB
		// (set) Token: 0x060025DB RID: 9691 RVA: 0x0006A6F3 File Offset: 0x000688F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x17000AF5 RID: 2805
		// (get) Token: 0x060025DC RID: 9692 RVA: 0x0006A6FC File Offset: 0x000688FC
		// (set) Token: 0x060025DD RID: 9693 RVA: 0x0006A704 File Offset: 0x00068904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ComposeId
		{
			get
			{
				return this.composeId_;
			}
			set
			{
				this.composeId_ = value;
			}
		}

		// Token: 0x060025DE RID: 9694 RVA: 0x0006A70D File Offset: 0x0006890D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ComposeSelectedRelicCsReq);
		}

		// Token: 0x060025DF RID: 9695 RVA: 0x0006A71C File Offset: 0x0006891C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ComposeSelectedRelicCsReq other)
		{
			return other != null && (other == this || (this.ComposeRelicId == other.ComposeRelicId && object.Equals(this.ComposeItemList, other.ComposeItemList) && this.MainAffixId == other.MainAffixId && this.Count == other.Count && this.ComposeId == other.ComposeId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060025E0 RID: 9696 RVA: 0x0006A79C File Offset: 0x0006899C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ComposeRelicId != 0U)
			{
				num ^= this.ComposeRelicId.GetHashCode();
			}
			if (this.composeItemList_ != null)
			{
				num ^= this.ComposeItemList.GetHashCode();
			}
			if (this.MainAffixId != 0U)
			{
				num ^= this.MainAffixId.GetHashCode();
			}
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this.ComposeId != 0U)
			{
				num ^= this.ComposeId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060025E1 RID: 9697 RVA: 0x0006A83C File Offset: 0x00068A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060025E2 RID: 9698 RVA: 0x0006A844 File Offset: 0x00068A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060025E3 RID: 9699 RVA: 0x0006A850 File Offset: 0x00068A50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MainAffixId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MainAffixId);
			}
			if (this.Count != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Count);
			}
			if (this.ComposeId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ComposeId);
			}
			if (this.composeItemList_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.ComposeItemList);
			}
			if (this.ComposeRelicId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ComposeRelicId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060025E4 RID: 9700 RVA: 0x0006A900 File Offset: 0x00068B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ComposeRelicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ComposeRelicId);
			}
			if (this.composeItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ComposeItemList);
			}
			if (this.MainAffixId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainAffixId);
			}
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this.ComposeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ComposeId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060025E5 RID: 9701 RVA: 0x0006A9A0 File Offset: 0x00068BA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ComposeSelectedRelicCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ComposeRelicId != 0U)
			{
				this.ComposeRelicId = other.ComposeRelicId;
			}
			if (other.composeItemList_ != null)
			{
				if (this.composeItemList_ == null)
				{
					this.ComposeItemList = new ItemCostData();
				}
				this.ComposeItemList.MergeFrom(other.ComposeItemList);
			}
			if (other.MainAffixId != 0U)
			{
				this.MainAffixId = other.MainAffixId;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			if (other.ComposeId != 0U)
			{
				this.ComposeId = other.ComposeId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060025E6 RID: 9702 RVA: 0x0006AA44 File Offset: 0x00068C44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060025E7 RID: 9703 RVA: 0x0006AA50 File Offset: 0x00068C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 16U)
					{
						this.MainAffixId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.Count = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.ComposeId = input.ReadUInt32();
						continue;
					}
					if (num == 82U)
					{
						if (this.composeItemList_ == null)
						{
							this.ComposeItemList = new ItemCostData();
						}
						input.ReadMessage(this.ComposeItemList);
						continue;
					}
					if (num == 104U)
					{
						this.ComposeRelicId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000F38 RID: 3896
		private static readonly MessageParser<ComposeSelectedRelicCsReq> _parser = new MessageParser<ComposeSelectedRelicCsReq>(() => new ComposeSelectedRelicCsReq());

		// Token: 0x04000F39 RID: 3897
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F3A RID: 3898
		public const int ComposeRelicIdFieldNumber = 13;

		// Token: 0x04000F3B RID: 3899
		private uint composeRelicId_;

		// Token: 0x04000F3C RID: 3900
		public const int ComposeItemListFieldNumber = 10;

		// Token: 0x04000F3D RID: 3901
		private ItemCostData composeItemList_;

		// Token: 0x04000F3E RID: 3902
		public const int MainAffixIdFieldNumber = 2;

		// Token: 0x04000F3F RID: 3903
		private uint mainAffixId_;

		// Token: 0x04000F40 RID: 3904
		public const int CountFieldNumber = 6;

		// Token: 0x04000F41 RID: 3905
		private uint count_;

		// Token: 0x04000F42 RID: 3906
		public const int ComposeIdFieldNumber = 9;

		// Token: 0x04000F43 RID: 3907
		private uint composeId_;
	}
}
